package org.example.springweibo.mapper;

import org.apache.ibatis.annotations.Param;
import org.example.springweibo.pojo.entity.Weibo;
import org.example.springweibo.pojo.vo.WeiboCommentVO;
import org.example.springweibo.pojo.vo.WeiboVO;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface WeiboMapper {
    List<WeiboCommentVO> getWeiboList(@Param("selectContent")String selectContent);

    int addWeibo(Weibo weibo);

    List<WeiboVO> getWeibos(@Param("uId") int uId);

    int updateWeibo(Weibo weibo);

    int deleteWeibo(@Param("id")int id);

    int deleteComment(@Param("id")int id);

    int deleteCommentById(@Param("id")int id);
}
